package com.dy.design_pattern_study.command_pattern.dome2.impl;

import com.dy.design_pattern_study.command_pattern.dome2.LogFactory;
import com.dy.design_pattern_study.utils.Utils;

import java.time.LocalDateTime;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-21
 * @Content 烤鸡翅 日志打印
 */
public class PrintBakeChickenWingLog implements LogFactory {

    private static PrintBakeChickenWingLog printBakeChickenWingLog = new PrintBakeChickenWingLog();

    private PrintBakeChickenWingLog() {
    }

    public static PrintBakeChickenWingLog getPrintBakeChickenWingLog() {
        return printBakeChickenWingLog;
    }

    @Override
    public void printLog() {

        System.out.println("日志：命令模式.烤鸡翅.." + Utils.dateToString(LocalDateTime.now(), null));
    }
}
